package com.cf.dao;

import com.cf.entity.Reward;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RewardDao {
    //查询所有
    public List<Reward> selectReward();
    //删除
    public int deleteReward(long rewardid);
    //修改
    public int updateReward(Reward reward);
    //添加
    public int insertReward(Reward reward);

    //根据项目id查找所有
    public List<Reward> selectByItemid(long iid);

    //通过rewardid查找
    public Reward selectByrewardid(long rewardid);

    //通过金额查找
    public int selectBymoney(@Param("iid") long iid, @Param("paymoney") long paymoney);

    //根据项目iid删除
    public int deleteByIid(long iid);
}
